import request from '@/utils/request.js'

//将针对Admin的所有请求封装到一个对象里面
const categoryApi = {
	selectCategoryTree() {
		return request.get('/product/category/selectCategoryTree')
	},
	selectByParentId(id){
		return request.get(`/product/category/selectByParentId/${id}`)
	}
}

export default categoryApi